package com.lik888.justauth_demo.Context;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "lik888.gitee")
@Component
@AllArgsConstructor
@NoArgsConstructor
public class Client {
       private String clientId;
       private String clientSecret;
       private String redirectUri;
       // 1. 手动写 getter 方法（这是 Controller 里要调用的）
       public String getClientId() {
              return clientId;
       }

       public String getClientSecret() {
              return clientSecret;
       }

       public String getRedirectUri() {
              return redirectUri;
       }

       // 2. 手动写 setter 方法（Spring 注入配置时需要）
       public void setClientId(String clientId) {
              this.clientId = clientId;
       }

       public void setClientSecret(String clientSecret) {
              this.clientSecret = clientSecret;
       }

       public void setRedirectUri(String redirectUri) {
              this.redirectUri = redirectUri;
       }
}
